package Exam;

import java.time.LocalDate;

public class Student {
    private int code;
    private String name;
    private String classes;
    private LocalDate birthday;

    public Student(int code, String name, String classes, LocalDate birthday) {
        this.code = code;
        this.name = name;
        this.classes = classes;
        this.birthday = birthday;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Student{" +
                "code=" + code +
                ", name='" + name + '\'' +
                ", classes='" + classes + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
